package com.hr.utils;

import freemarker.cache.ClassTemplateLoader;
import freemarker.template.Configuration;

public class FreeMarkerUtils {

    private FreeMarkerUtils() {}

    public static Configuration createConfig() {
        Configuration FMConfig = new Configuration(Configuration.VERSION_2_3_0);
        FMConfig.setTemplateLoader(new ClassTemplateLoader(FreeMarkerUtils.class, "/templates"));
        FMConfig.setDefaultEncoding("UTF-8");
        return FMConfig;
    }

}
